package br.ufrj.dcc.xml.dynamicintervals.encoding;

import java.util.ArrayList;
import java.util.List;

import org.xml.sax.SAXException;

import br.ufrj.dcc.xml.dynamicintervals.vo.Item;
/**
 * @author Alexandre Oliveira
 * This classes extends <code>SaxEncoder</code> to generate a 
 * list of Items. Mostly for debugging. 
 */

public class ItemListEncoder extends SaxEncoder {
	private List<Item> items = new ArrayList<Item>();
	
	public List<Item> getItems() {
		return items;
	}

	@Override
	public void itemGenerated(Item item) throws SAXException{
		items.add(item);
	}
}
